﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/MIOS_Manager.master" AutoEventWireup="true" CodeFile="DelivNotHandled.aspx.cs" Inherits="Manager_Delivnothandled" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style143
        {
            width: 256px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<p>
    未确认的订单</p>
<p>
    <asp:GridView ID="NotHandledDeliveryView" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True">
        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
        <Columns>
            <asp:BoundField HeaderText="订单号" DataField="orderID" />
            <asp:BoundField HeaderText="订单人" DataField="username" />
            <asp:BoundField HeaderText="乐器名称" DataField="name" />
            <asp:BoundField HeaderText="订单日期" DataField="orderTime" />
            <asp:BoundField HeaderText="单价" DataField="price" />
            <asp:HyperLinkField DataNavigateUrlFields="instruID" 
                    DataNavigateUrlFormatString="GoodDetail.aspx?instruID={0}" DataTextField="name" 
                    HeaderText="乐器名称" >
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
                </asp:HyperLinkField>
            <asp:BoundField HeaderText="小计" DataField="total" />
            <asp:TemplateField HeaderText="订单状态">
                <ItemTemplate >
                   <asp:DropDownList ID="txtState" runat="server" Text =<%#Eval("orderState")%> Width =60px  OnTextChanged="txtState_TextChanged">
                        <asp:ListItem>待处理</asp:ListItem>
                        <asp:ListItem>已发货</asp:ListItem>
                        <asp:ListItem>已确认</asp:ListItem>
                   </asp:DropDownList>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                 <HeaderStyle HorizontalAlign="Center" />
                 <ItemStyle HorizontalAlign ="Center" />
                 <ItemTemplate >
                     <asp:linkButton ID="lnkbtnCheck" runat="server" CommandArgument ='<%#Eval("orderID") %>' OnCommand ="lnkbtnCheck_Command" Text="查看" />
                 </ItemTemplate>    
             </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
</p>
<p>
    <table style="width: 94%;">
        <tr>
            <td class="style143">
                &nbsp;</td>
            <td>
                <asp:Button ID="btnUpdate" runat="server" Text="更新" onclick="btnUpdate_Click" />
            </td>
        </tr>
    </table>
</p>
</asp:Content>

